<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			var count=0;
			var ch=["America","Greece","Britain","Canada","China","AEgypt"];
			for(var i in ch){
				document.write(ch[i]+"<br />");
				if(ch[i].indexOf("a")!=-1||ch[i].indexOf("A")!=-1){
					count++;
				}
			}document.write("共有"+count+"字符串包含个a或A");
						
//			document.write(ch).toString();
			
		</script>
	</head>
	<body>
	</body>
</html>
